package com.jing.cloud.service.user.dao.impl;

import com.google.common.collect.Maps;
import com.jing.cloud.service.dao.impl.DbDaoImpl;
import com.jing.cloud.service.user.bean.Account;
import com.jing.cloud.service.user.dao.AccountDao;
import com.jing.cloud.service.util.db.Compare;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public class AccountDaoImpl extends DbDaoImpl<Account> implements AccountDao {
    @Override
    public List<Account> getListByUserIds(List<Long> userIds) {
        Map<String, Object> condition = Maps.newHashMap();
        Compare c = new Compare();
        c.setIn(userIds);
        condition.put("userId", c);
        return query(condition);
    }
}
